package com.itany.shop.service.impl;

import com.itany.shop.dao.ProductDao;
import com.itany.shop.entity.Product;
import com.itany.shop.exception.RequestParameterErrorException;
import com.itany.shop.factory.ObjectFactory;
import com.itany.shop.service.ProductService;
import com.itany.shop.util.ParameterUtil;

import java.util.List;

/**
 * @Author:石小俊
 * @Date:2022/12/16 9:39
 * @Version:1.0-SNAPSHOT
 * @Description:
 */
public class ProductServiceImpl implements ProductService {

    private ProductDao productDao = (ProductDao) ObjectFactory.getObject("productDao");

    @Override
    public List<Product> findAll() {
        return productDao.selectAll();
    }
}
